import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class array1 {

	
	public static void main(String[] args) throws IOException {
		///Users/seungbeomma/Documents/workspace/CSE267HW2/src
		//FileInputStream fstream1 = new FileInputStream(args[0]);
		FileInputStream fstream1 = new FileInputStream("/Users/seungbeomma/Documents/workspace/CSE267HW2/src/a.txt");
		DataInputStream in1 = new DataInputStream(fstream1);
		BufferedReader br1 = new BufferedReader(new InputStreamReader(in1));
		String strLine1 = null;
		double[][] darray = null;
		String []  db = null;
		int index = 0;
		
		int index2 = 0;
		int col = 0;
		int row = 0;
		while((strLine1 = br1.readLine()) != null)
		{
			int size = 0;
//			System.out.println("strLine1 " + strLine1);
			StringTokenizer stringTokenizer1 = new StringTokenizer(strLine1);
			//int size = Integer.parseInt(stringTokenizer1.nextToken());
			if (index == 0){
				 size = Integer.parseInt(stringTokenizer1.nextToken());				 
				 darray = new double[size][size];
				 db = new String[size];
					index++;
				//System.out.println("hello" + stringTokenizer1.nextToken());
			}
			if(index!= 0 && db.length < size){
				System.out.println(strLine1);
				db[index2++] = strLine1;
				
			}			
		
			
			
		}
	
		for(int outer = 0 ; outer < db.length ; outer++){
			String sen =  db[outer];
			for(String Str : sen.split(" "))
	        {
				System.out.println("Str " + Str+ " row "+row  + " col " + col);
				darray[row][col] = Double.parseDouble(Str);
				col++;
				
	        }
			col = 0;
			row++;
			
		}
		
	}
	
	
}